/*
 * @Author: your name
 * @Date: 2021-01-12 16:24:57
 * @LastEditTime: 2021-01-15 11:39:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \carlist\src\router\router-config.js
 */
import React from "react"
import loadable from "../utils/loadable"

export default[
    {
        path:"/searchIndex",
        component:loadable(()=>import('../pages/Official/index.js'))
    },
    {
        path:"/",
        redirect:"/searchIndex"
    },
    {
        path:"/car/:id",
        component:loadable(()=>import('../pages/Detail/index.js'))
    },
    {
        path:"/quotation",
        component:loadable(()=>import('../pages/Detail/index.js'))
    },
    {
        path:"*",
        component:loadable(()=>import('../pages/Error/404.js'))
    }
]